package cn.wit.test;

/**
 * 跳出嵌套循环
 * 
 * @author 16604
 *
 */
public class DemoNestLoopBreak {
	public static void main(String[] args) {
		
		//定义一个跳转的标签
		outter:
		for (int i = 0; i < 5; i++) {
			for (int j = 0; j < 5; j++) {
				if(j==4) {
					break outter;
				}
				System.out.print(".");
			}
			System.out.println("");
		}
	}

}
